export function adjustPostState(status, assigneeEmployeeNames) {
    // const newNames = assigneeEmployeeNames.substr(0, 1) === ',' ? assigneeEmployeeNames.substr(1) : assigneeEmployeeNames;
    const newNames = assigneeEmployeeNames.replace(/^,+/, '').replace(/,+$/, '');
    const mapState = {
        0: '保存-未提交',
        1: `${newNames}-待确认`,
        2: `${newNames}-待确认`,
        3: `${newNames}-待确认`,
        4: `${newNames}-待确认`,
        5: '关闭',
        6: '失败',
        7: '成功',
        8: `${newNames}-待确认`
    };
    return mapState[status] || '无调岗状态';
}
export function quitAdjustPostState(status, assigneeEmployeeNames) {
    // const newNames = assigneeEmployeeNames.substr(0, 1) === ',' ? assigneeEmployeeNames.substr(1) : assigneeEmployeeNames;
    const newNames = assigneeEmployeeNames.replace(/^,+/, '').replace(/,+$/, '');
    const mapState = {
        0: '保存-未提交',
        1: `${newNames}-待确认`,
        2: `${newNames}-待确认`,
        3: `${newNames}-待确认`,
        4: '关闭',
        5: '失败',
        6: '成功',
        7: `${newNames}-待确认`
    };
    return mapState[status] || '无离职状态';
}
